package com.example.common.enums;

public enum ResultCodeEnum {
    SUCCESS("200", "成功"),

    PARAM_ERROR("400", "参数异常"),
    TOKEN_INVALID_ERROR("401", "无效的token"),
    TOKEN_CHECK_ERROR("401", "token验证失败，请重新登录"),
    PARAM_LOST_ERROR("4001", "参数缺失"),

    SYSTEM_ERROR("500", "系统异常"),
    USER_EXIST_ERROR("5001", "用户名已存在"),
    USER_NOT_LOGIN("5002", "用户未登录"),
    USER_ACCOUNT_ERROR("5003", "账号或密码错误"),
    USER_NOT_EXIST_ERROR("5004", "用户不存在"),
    PARAM_PASSWORD_ERROR("5005", "原密码输入错误"),
    TEAM_NAME_ERROR("5006","团队名称已存在"),
    APPROVAL_INFO_NOT("50007", "该审批信息未进行审批，无法删除"),
    MENU_NOT_PATENT("50008", "该菜单已为最高级菜单，无法赋予其父菜单"),
    META_INSERT_ERROR("50009", "该菜单已有对应样式表单，不能在添加新的菜单样式"),
    TEAMID_OR_USERID_ERROR("50010", "没有成员标识或者团队标识，无法将成员从团队中删去"),
    FILE_EMPTY_ERROR("50011", "当前文件为空，无法上传"),
    FILE_UPLOAD_FAIL("50012", "上传文件失败"),
    ROLE_NAME_ERROR("50013", "当前角色名称已存在"),
    PASSWORD_SAME_ERROR("50014", "新密码与旧密码不能一致"),
    SMS_EXPIRE_ERROR("4002","未获取验证码或者验证码已过期, 请重新获取验证码"),
    SMS_VALID_ERROR("4003","验证码输入错误，请重新输入"),
    SMS_SAME_ERROR("4004", "一分钟之内不能重复获取验证码"),
    PRO_DEF_IF_ERROR("50015", "审批流程ID有误"),
    SMS_SEND_ERROR("4005", "发送验证码失败"),
    PHONE_ERROR("50016", "手机号格式错误"),
    REDIS_ADMIN_NOT("50017", "redis中用户不存在!"),
    PASSWORD_NOT_SAME("50018", "两次输入密码不相同"),
    PHONE_EXIST_ERROR("50019", "当前手机已经注册，请更换另一个手机号码"),
    ;

    public String code;
    public String msg;

    ResultCodeEnum(String code, String msg) {
        this.code = code;
        this.msg = msg;
    }
}
